﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GAE_PI.Models;
using System.Data.SqlClient;

namespace GAE_PI.Exceptions
{
    public class GAEException:Exception
    {
        public ErrorModel errorModel { get; set; }

        public GAEException(SqlException ex)
        {
            errorModel = new ErrorModel();
            errorModel.Message = ex.Message;
        }
        public GAEException(String message)
        {
            errorModel = new ErrorModel();
            errorModel.Message = message;
        }
    }
}